﻿app.controller('ReserveIndexCtrl',
    ['$scope', '$http', '$filter', '$state', 'wemaskPlus', 'httpPlus', 'utils','$timeout',
    function ($scope, $http, $filter, $state, wemaskPlus, httpPlus, utils,$timeout) {

        $timeout(function(){
            var swiper = new Swiper('.swiper-container', {   //轮播图绑定样式名
                autoplay: true,//可选选项，自动滑动
                loop:true,
                pagination: {
                    el: '.swiper-pagination',
                    type: 'fraction',
                },
            });
        },100);
        $scope.slides = _.map(_.range(1,5),function(val){
            return{
                image:'img/wx/reserve/bb' + val + '.jpg',
                text:'aa'+val,
            }
        })
        utils.setTitle('预定中心');
        $scope.showDetail_click = function(val){
            console.log(val);
        };
    }]);